//
//  DouBanModel.m
//  豆瓣CollectionView
//
//  Created by kingbw on 16/1/29.
//  Copyright © 2016年 kingbw. All rights reserved.
//

#import "DouBanModel.h"
#import "MovieDetailModel.h"
@implementation DouBanModel

- (instancetype)initWithDataSource:(NSDictionary *)dataSource
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dataSource];
        NSMutableArray *array = [NSMutableArray arrayWithCapacity:0];
        for (NSDictionary *dic in self.entries) {
            MovieDetailModel *movieDetailModel = [[MovieDetailModel alloc] init];
            [movieDetailModel setValuesForKeysWithDictionary:dic];
            [array addObject:movieDetailModel];
        }
        self.entries = [NSMutableArray arrayWithArray:array];
    }
    return self;
}



- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

- (id)valueForUndefinedKey:(NSString *)key {
    return nil;
}

@end
